import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "MoonLight",
  description: "MoonLight的文档网站",
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    // 链接会自动跳转到对应目录下index.md
    nav: [
      { text: '首页', link: '/' },
      { text: '前段文件', link: '/FrontEnd/Vue/Vue.md' },
      { text: '后端文件', link: '/RearEnd/Java/Java.md' }
    ],

    sidebar: [
      {
        text: '前端口文件',
        items: [
          { text: 'VUe', link: '/FrontEnd/Vue/Vue.md' },
          { text: 'css', link: '/FrontEnd/Vue/css.md' }
        ]
      },
      {
        text: '后端文件',
        items: [
          { text: 'java', link: '/RearEnd/Java/Java.md' },
          // { text: 'css', link: '/FrontEnd/Vue/css.md' }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
